package com.caht.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.extern.slf4j.Slf4j;

import java.io.File;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import java.util.Date;

/**
 * 用户
 */
@Data
public class User implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;
    //OpenId
    private String openId;
    //手机号
    private String phone;
    //用户名
    private String UserName;
    // 头像路径
    private String AvatarUrl;
    // 背景图片路径
    private String BackgroundImage;
    //性别
    private String Gender;
    //关注量
    private Integer follow;
    //登入方式
    private Long longType;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime CreationTime;
    //修改时间
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime UpdateTime;
}
